package sample.aop.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    Logger logger = LoggerFactory.getLogger(getClass());
    @GetMapping("/test")
    public String test(){
        logger.info("执行了test方法！");
        return "hello world!";
    }
}
